package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 退订审核信息表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-15
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_cancel_process")
@ApiModel(value = "CancelProcess对象", description = "退订审核信息表")
public class CancelProcess extends BaseEntity {

    @ApiModelProperty("表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("订单编号")
    @TableField("orders_id")
    private Long ordersId;

    @ApiModelProperty("操作人编号")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("操作人名称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty("审核类型")
    @TableField("process_type")
    private String processType;

    @ApiModelProperty("审核结果（0 同意 2不同意）")
    @TableField("process_result")
    private Integer processResult;

    @ApiModelProperty("删除标识（0 正常 2 删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String ORDERS_ID = "orders_id";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String PROCESS_TYPE = "process_type";

    public static final String PROCESS_RESULT = "process_result";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
